import store from '@/store/'

export const RoleMixin = {
  data() {
    return {}
  },
  computed:{
    isBusiness() {
      return !!store.getters.roles.find(item => {
        return item.roleCode === 'business' || item.roleCode === 'agent'
      })
    }
  }
}

